dict字典

dict 字典
2022 年 4 月 9 日
8:46
dict.has_key(key)
判断一个 key 是否存在

.get(“x”,“y”)可以获取一个键 x 对应的值,如果不存在键 x,会返回字符串 y